package com.zc.app.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * Created by zc on 2016/3/14.
 */
//@Service
public class AccountService {

//    @Cacheable(value="pool1", key = "#userName")
//    public Account getAccountByName(String userName) {
//        System.out.println("Real query account. " + userName);
//        return getFromDB(userName);
//    }
//
//    private Account getFromDB(String userName) {
//        System.out.println("Real querying db..." + userName);
//        return new Account(userName);
//    }

}
